﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations;

namespace Model
{
    public class SystemMenu:IAggregateRoot
    {
        public int ID { get; set; }
        public string MenuName { get; set; } //菜单名称
        public int PMenuID { get; set; } //父级菜单代码
        [MaxLength(20)]
        [Column(TypeName = "varchar")]
        public string FileFolder { get; set; } //文件目录
        [MaxLength(20)]
        [Column(TypeName = "varchar")]
        public string FileName { get; set; } //执行文件
        public int OrderBy { get; set; } //排序
        public bool IsVisible { get; set; } //显示还是隐藏
        public string Flag { get; set; }
        public int Level { get; set; }

        public virtual ICollection<SystemRoleMenu> SystemRoleMenus { get; set; }
    }
}
